Skip to content

Conversation

@errwnd
Copy link

@errwnd errwnd commented Oct 15, 2024

Shouldn't "a" be assigned the value of the later operation(3+4) rather than (1+2).

Shouldn't "a"  be assigned the value of the later operation(3+4) rather than (1+2).
@javascript-translate-bot javascript-translate-bot added the review needed Review needed, please approve or request changes label Oct 15, 2024
@javascript-translate-bot javascript-translate-bot requested a review from a team October 15, 2024 07:30
@CLAassistant
Copy link

CLAassistant commented Oct 15, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@joaquinelio joaquinelio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No
Read it,
precedence is the point of the smart header

let a = (1 + 2, 3 + 4) // a = (7)

let a = 1 + 2, 3 + 4 // (a = 3), 7

@errwnd
Copy link
Author

errwnd commented Oct 21, 2024

let a = 1 + 2, 3 + 4 // (a = 3), 7
Shall we have a code representation like:
let a; a =1+2, 3+4; alert(a); // returns 3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review needed Review needed, please approve or request changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants